<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
 
// import Joomla view library
jimport('joomla.application.component.view');
 
/**
 * Publications List View
 */
class NrmResearchViewCurrentResearchs extends JViewLegacy
{
	/**
	 * Publications view display method
	 * @return void
	 */

	function display($tpl = null) 
	{
		// Get data from the model
		$items = $this->get('Items');
		$pagination = $this->get('Pagination');
		$state = $this->get('state');	
		$user	= JFactory::getUser();
		// Check for errors.
		if (count($errors = $this->get('Errors'))) 
		{
			JError::raiseError(500, implode('<br />', $errors));
			return false;
		}
		// Assign data to the view
		$this->items = $items;
		$this->params = $state->params;
		$this->pagination = $pagination;
 		$this->state = $state; 		
 		$this->user = $user;
 		$user->authorise('core.edit',			'com_zorder.order.'.$item->id);
 		$this->max_number_items_perpage = $this->escape($pagination->limit);	
 		//var_dump($pagination);
		// Display the template
		parent::display($tpl);
	} 
}
